package com.ruoyi.wx.controller;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.wx.service.serviceImpl.EmployeeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/approval")
public class EmployeeApprovalController {

    @Autowired
    private EmployeeServiceImpl employeeService;

    @GetMapping("/getApproval")
    public AjaxResult getApproval(Long employeeId){
        Map<String, Object> approval = employeeService.getEmployeeApproval(employeeId);
        return AjaxResult.success(approval);
    }

}
